import os
import time
import pytest


def main():
    """执行Pytest测试并生成报告。"""
    pytest.main()
    now = time.strftime("%Y%m%d%H%M%S", time.localtime())
    os.system(f"allure generate -o ./src/report/{now} --clean ./src/report/tmp")


if __name__ == "__main__":
    main()
